<template>
    <div>
        <div class="content1">
            <el-table
        :data="data.list"
        :model="data.list"
        style="width: 100%"
        :header-cell-style="getRowClass"
        :cell-style="rowStyle"
      >
        <el-table-column prop="id" label="编号" width="180"> </el-table-column>
        <el-table-column
          prop="username"
          label="用户名"
          width="180"
        ></el-table-column>
        <el-table-column prop="realname" label="姓名"> </el-table-column>
        <el-table-column
          prop="gender"
          label="性别"
          width="180"
        ></el-table-column>
        <el-table-column prop="telephone" label="手机号" width="180">
        </el-table-column>
        <el-table-column
          prop="birth"
          label="出生日期"
          width="180"
          :formatter="fmt"
        ></el-table-column>
        <el-table-column prop="roles[0].name" label="职位" width="180">
        </el-table-column>
            </el-table>
        </div>

        <div class="content2">
            <el-table
        :data="data.list"
        :model="data.list"
        style="width: 100%"
        :header-cell-style="getRowClass"
        :cell-style="rowStyle"
      >
        <el-table-column prop="id" label="编号" width="180"> </el-table-column>
        <el-table-column
          prop="username"
          label="用户名"
          width="180"
        ></el-table-column>
        <el-table-column prop="realname" label="姓名"> </el-table-column>
        <el-table-column
          prop="gender"
          label="性别"
          width="180"
        ></el-table-column>
        <el-table-column prop="telephone" label="手机号" width="180">
        </el-table-column>
        <el-table-column
          prop="birth"
          label="出生日期"
          width="180"
          :formatter="fmt"
        ></el-table-column>
        <el-table-column prop="roles[0].name" label="职位" width="180">
        </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return{
            data:''
        }
    },
    created(){
        this.getmessage()
    },
    watch:{
        '$route': 'getmessage'
    },
    methods:{
        getmessage(){
            const routerParams = this.$route.query.mallCode;
            console.log(routerParams,'参数===============');
        }
    }
}
</script>